package com.youxin.busfoundation.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * 
 * @author yingde.cao
 *
 */
public class BaseLogModel extends BaseLogBean {
	/** 主键 */
	private Long id;	

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	/** 页面停留时间 */
	@JsonProperty(value = "stay_time")
	private Long stayTime;

	/** 客户端ip地址,若没有代理,就是真实ip,如果有代理,就表示代理ip */
	private String ip;

	/** 客户端使用代理时,保存客户端的真实ip,否则为空 */
	@JsonProperty(value = "forwarded_ip")
	private String forwardedIp;

	/** 创建时间 */
	@JsonProperty(value = "create_time")
	private Date createTime;

	/** 0表示其它,1表示PC,2表示苹果手机,3表示安卓 */
	@JsonProperty(value = "device_type")
	private Integer deviceType;

	/** 默认设备信息 */
	@JsonProperty(value = "device_info")
	private String deviceInfo;

	public Integer getDeviceType() {
		return deviceType;
	}

	public void setDeviceType(Integer deviceType) {
		this.deviceType = deviceType;
	}

	public String getDeviceInfo() {
		return deviceInfo;
	}

	public void setDeviceInfo(String deviceInfo) {
		this.deviceInfo = deviceInfo;
	}

	/** 序列号id */
	@JsonProperty(value = "serial_id")
	private Long serialId;

	public Long getSerialId() {
		return serialId;
	}

	public void setSerialId(Long serialId) {
		this.serialId = serialId;
	}

	public Long getStayTime() {
		return stayTime;
	}

	public void setStayTime(Long stayTime) {
		this.stayTime = stayTime;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip == null ? null : ip.trim();
	}

	public String getForwardedIp() {
		return forwardedIp;
	}

	public void setForwardedIp(String forwardedIp) {
		this.forwardedIp = forwardedIp == null ? null : forwardedIp.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}


}
